package net.peelmeagrape.hibernate.sql;

import net.peelmeagrape.hibernate.xmlgen.XmlAttribute;
import net.peelmeagrape.hibernate.xmlgen.XmlElement;

import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Retention(RUNTIME)
@XmlElement(name="return-join")
public @interface ReturnJoin
{
    @XmlAttribute String alias();
    @XmlAttribute String property();
    @XmlAttribute("lock-mode") LockMode lockMode() default LockMode.READ;
}
